package com.material.demo.utils;

import android.animation.ValueAnimator;
import android.util.Log;

/**
 * Created by pc on 2016/12/21.
 */

public class ValueAnimHelper {

    private static final String TAG = ValueAnimHelper.class.getName();

    public static void a(int start,int end,long time){
       ValueAnimator animator = ValueAnimator.ofInt(start,end)
                .setDuration(time);

           animator     .addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
                    @Override
                    public void onAnimationUpdate(ValueAnimator animation) {
                        Log.e(TAG,"CurrentValue : " + animation.getAnimatedValue());
                    }
                });

        animator.start();
    }
}
